package com.ecut;

import java.util.Arrays;

public class test {
    public static void main(String[] args) {
        test(1,2,3,4,5,6,7,8,9,10);
    }
    //可变长参数
    public static void test(int... a){
        System.out.println(Arrays.toString(a));
        for (int i : a) {
            System.out.println(i);
        }
    }
}
